<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="include/head::commonHeader('新增ET问题人员')">

</head>
<body style="min-height:auto;">
<div class="ch-container">
    <div class="row">
        <form class="form-horizontal" method="post" th:action="@{/et/monitor/add}">
            <div class="box col-md-12">
                <legend class="text-center" style="padding-bottom:15px;font-weight: bold;" contenteditable="false" th:text="新增ET问题人员">新增ET问题人员</legend>
                <div class="form-group">
                    <label class="col-xs-3 text-right"><i class="fa fa-asterisk fa-1" style="color: red;" aria-hidden="true"></i> 用户名称</label>
                    <div class="col-xs-9 item">
                        <input class="form-control" id="loginName" name="loginName" type="text" placeholder="请搜索用户关键字" required autocomplete="off" maxlength="50"/>
                        <input type="hidden" name="personId" id="personId" >
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-3 text-right"><i class="fa fa-asterisk fa-1" style="color: red;" aria-hidden="true"></i>提醒内容</label>
                    <div class="col-xs-9 item">
                        <input class="form-control" name="content" type="text" placeholder="请输入提醒内容" required maxlength="20"/>
                    </div>
                </div>
                <div class="form-group text-center">
                    <button type="submit" class="btn btn-primary"> 保存 </button>
                </div>
            </div>
        </form>
    </div>

    <div th:include="include/onload_js::onloadJSCustomEdit(~{::script})">
        <script>
            let addStatus="[[${status}]]";
            if (addStatus==="1"){
                layer.msg("添加记录成功，可继续添加",{icon:1});
            }else if(addStatus==="0"){
                layer.msg("添加记录失败，请重试",{icon:2});
            }else if(addStatus==="-1"){
                layer.msg("添加的用户已存在，请勿重复添加",{icon:2});
            }
            creatSearchDiv("loginName", "personId", "/et/search/person/list", 26, 0, function(){

            });
        </script>
    </div>
</div>
</body>
</html>